package com.douqu.game.core.entity.activity;

import com.douqu.game.core.entity.EntityObject;
import com.douqu.game.core.entity.battle.BattleInitParam;

/**
 * @Author: Bean
 * @Description:
 * @Date: 2018-08-30 17:28
 */
public class DirectEndData extends EntityObject {

    private int battleDetailType;

    private int playerServerId;

    private String playerIndex;

    private int targetServerId;

    private String targetIndex;

    private String targetName;//有值才算

//    private boolean isPlayerWin;
//
//    private MatchBaseInfo targetInfo;

    private BattleInitParam initParam;

    public DirectEndData() {
    }

    public DirectEndData(int battleDetailType, int playerServerId, String playerIndex, int targetServerId, String targetIndex, String targetName, BattleInitParam initParam)
    {
        this.battleDetailType = battleDetailType;
        this.playerServerId = playerServerId;
        this.playerIndex = playerIndex;
        this.targetServerId = targetServerId;
        this.targetIndex = targetIndex;
        this.targetName = targetName;
        this.initParam = initParam;
    }

    public int getBattleDetailType() {
        return battleDetailType;
    }

    public void setBattleDetailType(int battleDetailType) {
        this.battleDetailType = battleDetailType;
    }

    public int getPlayerServerId() {
        return playerServerId;
    }

    public void setPlayerServerId(int playerServerId) {
        this.playerServerId = playerServerId;
    }

    public String getPlayerIndex() {
        return playerIndex;
    }

    public void setPlayerIndex(String playerIndex) {
        this.playerIndex = playerIndex;
    }

//    public boolean isPlayerWin() {
//        return isPlayerWin;
//    }
//
//    public void setPlayerWin(boolean isPlayerWin) {
//        this.isPlayerWin = isPlayerWin;
//    }
//
//    public MatchBaseInfo getTargetInfo() {
//        return targetInfo;
//    }
//
//    public void setTargetInfo(MatchBaseInfo targetInfo) {
//        this.targetInfo = targetInfo;
//    }


    public String getTargetName() {
        return targetName;
    }

    public void setTargetName(String targetName) {
        this.targetName = targetName;
    }

    public BattleInitParam getInitParam() {
        return initParam;
    }

    public void setInitParam(BattleInitParam initParam) {
        this.initParam = initParam;
    }

//    @Override
//    public String toString() {
//        return "{" +
//                "battleDetailType=" + battleDetailType +
//                ", playerServerId=" + playerServerId +
//                ", playerIndex='" + playerIndex + '\'' +
//                ", isPlayerWin=" + isPlayerWin +
//                ", targetInfo=" + targetInfo +
//                ", initParam=" + initParam +
//                "} ";
//    }


    public int getTargetServerId() {
        return targetServerId;
    }

    public void setTargetServerId(int targetServerId) {
        this.targetServerId = targetServerId;
    }

    public String getTargetIndex() {
        return targetIndex;
    }

    public void setTargetIndex(String targetIndex) {
        this.targetIndex = targetIndex;
    }

    @Override
    public String toString() {
        return "{" +
                "battleDetailType=" + battleDetailType +
                ", playerServerId=" + playerServerId +
                ", playerIndex='" + playerIndex + '\'' +
                ", targetServerId=" + targetServerId +
                ", targetIndex='" + targetIndex + '\'' +
                ", initParam=" + initParam +
                "} ";
    }
}
